package com.zero.zui
{
	import com.zero.zinterface.IComponent;
	
	import flash.display.Sprite;
	import flash.utils.Dictionary;
	
	public class Component extends Sprite implements IComponent
	{
		protected var _attributeDic		:Dictionary;
		
		public var stylename				:String

		public function Component()
		{
			super();
			_attributeDic = new Dictionary();
		}
		
		public function attributeChange($styleName:String):void
		{
			_attributeDic[$styleName] = true;
			attributeUpdate();
			addChildren();
		}
		
		public function attributeUpdate():void
		{
			
		}
		
		public function addChildren():void
		{
			
		}
		
		public function dispose():void
		{
			
		}
	}
}